 <!DOCTYPE html>

<html>

<!--Made By kailuosoft.com, TEL 171 9992 9517 -->

<head>



    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">





    <title>已发货订单页</title>

    <meta name="keywords" content="">

    <meta name="description" content="">



       <include file="Commons/commons" />



   <script type="text/javascript">

		function page(n,s){

			

			var order_number=$('#search_number').val();

			var customer_name=$('#customer_name').val();

			var salesman=$('#salesman').val();

			location.href='complete_list?pageNo='+n+'&pageSize='+s+'&order_number='+order_number+'&customer_name='+customer_name+'&salesman='+salesman;

	    	return false;

	    }

		

		function dele(id)

		{

		    layer.confirm('确定要删除吗？',

			              {btn:['确定','取消']},

							  function(){

							      location.href='order_delete?id='+id;

							  }

						  ),

						

						  function(){return false;} 

						  

		}



			

	</script>



</head>



<body class="gray-bg">

    <div class="wrapper wrapper-content animated fadeInRight">

         

        <div class="row">

            <div class="col-sm-12">

                <div class="ibox float-e-margins">

                    <div class="ibox-title">

                        <h5>已发货的订单</h5>

                        

                    </div>

                    <div class="ibox-content">

					     <form id="searchForm" class="form-inline" method="get" action="" >

					<div class="row">

                            <input type='hidden' name='pageNo' value="{$count['pageNo']}" />

                            <input type='hidden' name='pageSize' value="{$count['pageSize']}" />

                            <input type='hidden' id='name' name='name' value='{$order.name}' />

                            <input type='hidden' id='asc' name='asc' value='{$order.asc}' />

                            

                            <div class='search'>

                              

                               

                               	<input class="form-control input-sm" placeholder="订单号" name="order_number" id="search_number"  value="{$order_number}" >

							   

							   	<input class="form-control input-sm" placeholder="客户" name="customer_name" id="customer_name" value="{$customer_name}"  >

                                <if condition="$orders eq 1">

                                <input class="form-control input-sm" placeholder="业务员" name="salesman" id="salesman" value="{$salesman}"  >

                                </if>

							    <button type="submit" class="btn btn-sm btn-primary"> 搜索</button>

								<a class="btn btn-white btn-sm " href="javascript:window.location.reload(true);" data-toggle="tooltip" data-placement="left"   title="刷新"> <i class="glyphicon glyphicon-repeat"></i> 刷新</a>  

							    

                            </div>

                        </div>

					    </form>

						<form id="goodsform" method="post" action="">

                         <table class="table table-bordered table-striped table-hover table_one" style="margin-top:30px;">

                            <thead>

                                <tr>

									<th width="8%">业务员</th>

								   	<th width="8%">创建日期</th>

                                    <th width="8%">发货日期</th>

                                    <th width="8%">订单号</th>

									<th width="8%">客户名称</th>

                                    <th width="8%">产品总货值</th>

								   	<th width="8%">折扣率</th>

                                    <th width="8%">折后货值</th>

									<th width="8%">收取运费</th>

                                    <th width="8%">快递单号</th>

                                    <th width="8%">总金额</th>

                                    <th width="8%">查看明细</th>

                                    <th width="8%">备注</th>

									<th>操作</th>

                                </tr>

                            </thead>

                            

                            <tbody>

							<foreach name="complete_list" item="complete_info" key="k">

                                <tr>

                                    <input type='hidden' name='' value="{$complete_info.id}" class='id'>

 									<td>{$complete_info.salesman}</td>

                                    <td><?php echo date("Y-m-d",strtotime($complete_list[$k]['create_time']));?></td>

									<td><?php echo date("Y-m-d",strtotime($complete_list[$k]['delivery_time']));?></td>

									<td>{$complete_info.order_number}</td>

                                    <td>{$complete_info.customer_name}</td>

                                    <td>{$complete_info.total_price}</td>

									<td>{$complete_info.discount_rate}</td>

									<td>{$complete_info.discounted_value}</td>

                                    <td>{$complete_info.feright}</td>

                                    <td><if condition="$complete_info.tracking_number neq '0'">{$complete_info.tracking_number}</if></td>

                                    <td>{$complete_info['discounted_value']+$complete_info['feright']}</td>

									<td>

                                    	<a class="btn btn-sm btn-primary add" title="查看明细" href="{:U('complete_details',array('id'=>$complete_info['id']))}" >查看明细</a>

                                    </td>

                                    <td>{$complete_info.remarks}</td>

                                    <td>

                                         <a class="btn btn-sm btn-primary add" title="导出" name="export" href="{:U('look_down',array('order_number'=>$complete_info['order_number']))}">导出</a>

                                        <a class="btn btn-sm btn-primary add" title="删除" href="{:U('complete_dele',array('id'=>$complete_info['id']))}">删除</a>

								    </td>

									

							  </tr>

                           </foreach>   

                              

                              <!--<tr>

                                    <input type='hidden' name='' value="{$address.id}" class='id'>

 									<td nameval='order_number'  class='sku'>7</td>

									<td nameval='date_created'>8</td>

									<td nameval='salesman'>9</td>

                                    <td nameval='customer_name'>10</td>

                                    <td nameval='order_number'  class='sku'>7</td>

                                    <td nameval='order_number'  class='sku'>7</td>

									<td nameval='date_created'>8</td>

									<td nameval='salesman'>9</td>

                                    <td nameval='customer_name'>10</td>

                                    <td nameval='customer_name'>10</td>

									<td nameval='operation'>

                                    	<a class="btn btn-sm btn-primary add" title="查看明细" href="{:U('stock_details')}" >查看明细</a>

                                    </td>

                                    <td class="edit"></td>

                                    <td>

                                        <a class="btn btn-sm btn-primary add" title="预览" name="preview">预览</a>

                                        <a class="btn btn-sm btn-primary add" title="导出" name="export">导出</a>

                                        <a class="btn btn-sm btn-primary add" title="删除" name="del">删除</a>

								    </td>

									

							  </tr>-->

                            </tbody>

                        </table>

                        <!--<table class="table table-bordered table-striped table-hover"  style="margin-top:30px;">

                            <thead>

                                <tr>

									<th>订单号</th>

                                    <th>客户名称</th>

								   	<th>业务员名称</th>

									<th>备注</th>

									<th>完成时间</th>

                                    <th>操作</th>

                                </tr>

                            </thead>

                            <tbody>

							

                                <tr>

                                    <td>1</td>

									<td>2</td>

									<td>3</td>

                                    <td>4</td>

                                    <td>

									  	2016-10-20 10：00：00

								    </td>

                                    <td>

									  	<a class="btn btn-sm btn-primary"  href="http://xingai.test.kailuosoft.com/index.php/Home/Index/checkdetails.html">查看明细</a>

								    </td>

									

							  </tr>

                            </tbody>

                        </table>-->

			          </form>

						

	<!-- 分页代码 -->

<div class="fixed-table-pagination" style="display: block;">

	<div class="pull-left pagination-detail">

		<span class="pagination-info">显示第 1 到第 {$count.pageSize} 条记录，总共 {$count.count} 条记录</span>

		<span class="page-list">每页显示 

			<span class="btn-group dropup">

				<button type="button" class="btn btn-default  btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false">

					<span class="page-size">{$count.pageSize}</span> <span class="caret"></span></button>

					<ul class="dropdown-menu" role="menu">

					<li class="<if condition=" $count.pageSize eq 10"> active </if>"><a href="javascript:page(1,10,'');">10</a></li>

					<li class="<if condition=" $count.pageSize eq 25"> active </if>"><a href="javascript:page(1,25,'');">25</a></li>

					<li class="<if condition=" $count.pageSize eq 50"> active </if>"><a href="javascript:page(1,50,'');">50</a></li>

					<li class="<if condition=" $count.pageSize eq 100"> active </if>"><a href="javascript:page(1,100,'');">100</a></li>

					</ul>

					</span> 条记录</span>

				</div>

				<div class="pull-right pagination-roll">

				<ul class="pagination pagination-outline">

					<li class="paginate_button <if condition=" $count.pageNo eq 1"> previous disabled </if>"><a href="javascript:" onClick="page(1,{$count.pageSize},'');"><i class="fa fa-angle-double-left"></i></a></li>

					<li class="paginate_button <if condition=" $count.pageNo eq 1"> previous disabled </if>"><a href="javascript:" onClick="page({$count.pageNo}-1,{$count.pageSize},'');"><i class="fa fa-angle-left"></i></a></li>

					 <if condition=" $count.countpage gt 10 "> 

					 	<if condition=" $count.pageNo lt 5 "> 

							<li class="paginate_button "><a href="javascript:" onClick="page(1,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==1)?'current':'' ?>">1</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(2,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==2)?'current':'' ?>">2</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(3,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==3)?'current':'' ?>">3</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(4,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==4)?'current':'' ?>">4</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(5,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==5)?'current':'' ?>">5</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(6,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==6)?'current':'' ?>">6</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(7,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==7)?'current':'' ?>">7</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(8,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==8)?'current':'' ?>">8</a></li>

							<li class="paginate_button disabled"><a href="javascript:">...</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page({$count.countpage},{$count.pageSize},'');">{$count.countpage}</a></li>

						<elseif condition="$count.pageNo lt $count.num and $count.pageNo egt 5"/>

							<li class="paginate_button "><a href="javascript:" onClick="page(1,{$count.pageSize},'');">1</a></li>

							<li class="paginate_button disabled"><a href="javascript:">...</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']-3; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']-3; ?></a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']-2; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']-2; ?></a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']-1; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']-1; ?></a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page({$count.pageNo},{$count.pageSize},'');" id='current'><?php echo $count['pageNo']; ?></a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']+1; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']+1; ?></a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']+2; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']+2; ?></a></li> 

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']+3; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']+3; ?></a></li>

							<li class="paginate_button disabled"><a href="javascript:">...</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page({$count.countpage},{$count.pageSize},'');">{$count.countpage}</a></li>

						<else />

							<li class="paginate_button "><a href="javascript:" onClick="page(1,{$count.pageSize},'');">1</a></li>

							<li class="paginate_button disabled"><a href="javascript:">...</a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-4; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-4))?'current':'' ?>"><?php echo $count['countpage']-4; ?></a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-3; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-3))?'current':'' ?>"><?php echo $count['countpage']-3; ?></a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-2; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-2))?'current':'' ?>"><?php echo $count['countpage']-2; ?></a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-1; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-1))?'current':'' ?>"><?php echo $count['countpage']-1; ?></a></li>

							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==$count['countpage'])?'current':'' ?>"><?php echo $count['countpage']; ?></a></li>

						</if>

					<else />

						<for start="0" end="$count.countpage" name='i'>

							<li class="paginate_button <if condition=" $count.pageNo eq $i+1"> previous disabled </if>"><a href="javascript:" onClick="page({$i+1},{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($i+1))?'current':'' ?>">{$i+1}</a></li>

						</for>

					</if>

					<li class="paginate_button next <if condition=" $count.pageNo egt $count.countpage"> previous disabled </if>"><a href="javascript:" onClick="page({$count.pageNo}+1,{$count.pageSize},'');"><i class="fa fa-angle-right"></i></a></li>

					<li class="paginate_button next <if condition=" $count.pageNo egt $count.countpage"> previous disabled </if>"><a href="javascript:" onClick="page({$count.countpage},{$count.pageSize},'');"><i class="fa fa-angle-double-right"></i></a></li>

				</ul>

			</div>

		</div>

	<br/>

	<br/>

	</div>

	</div>

</div>

             </div>

                </div>

            </div>

             

        </div>

         

    </div>



    <script>

    	$(document).ready(function(){

			

			 $('.edit').dblclick(function(){

				  name=$(this).attr('nameval');

				  nval=$(this).text();

				  id=$(this).parent().find('.id').val();

				

				 $(this).parent().find('.id').attr('name','id');

				

				 $(this).html("<input type='text' name='value' value='"+nval+"' class='input-sm form-control' id='"+name+"'>");

				

				 $(this).children('#'+name).focus().val(nval);

				 $(this).css('padding','0px');

				 $(this).children('.form-control').css({border:'none',textAlign:'center'});

				

				$(this).children().blur(function(event){

                    value=$(this).val();

					

					visitor_id=$('#visitor_id').val();

				

					$.ajax({

						url:"{:U('Address/address_edit')}", 

						data:'name='+name+'&value='+$(this).val()+'&id='+id+'&visitor_id='+visitor_id,

						type:"post",

						success:function(msg){

							 if(msg=='success')

							 {   

								 $(this).val(value);

							 }

							 else

							 {

								 $(this).val(nval);

							 }

						 }

					})

					

					$(this).parent().html($(this).val());

					

					$(this).remove();

				

				});

			})

		})



    </script>

    <div style="display:none"><script language="javascript" type="text/javascript" src="http://js.users.51.la/17825721.js"></script>

<noscript><a href="http://www.51.la/?17825721" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/17825721.asp" style="border:none" /></a></noscript></div>

</body>

<!--Made By kailuosoft.com, TEL 171 9992 9517 -->

<script  type="text/javascript"  src="http://g.tbcdn.cn/sj/securesdk/0.0.3/securesdk_v2.js"  id="J_secure_sdk_v2" data-appkey="23416550"></script>

</html>

